<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Models_Products_AttributeValues</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Models_Products_AttributeValues</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Product template attributes values. Values of templates' attributes  product is assigned to.</p>
	<ul class="tags">
				<li><span class="field">license:</span> New</li>
				<li><span class="field">copyright:</span> Copyright (c) 2009 Konstantin Shamko</li>
				<li><span class="field">version:</span> 0.0.1</li>
				<li><span class="field">author:</span> Konstantin Shamko &lt;<a href="mailto:konstantin.shamko@gmail.com">konstantin.shamko@gmail.com</a>&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Models_Products_AttributeValues_php.html">/Models/Products/AttributeValues.php</a> (line <span class="field">13</span>)
		</p>
		
				
		<pre>Bel_Model_Abstract
   |
   --Models_Products_AttributeValues</pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
								<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$_referenceMap" title="details" class="var-name">$_referenceMap</a>
				</div>
							</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">Models_Products_AttributeValues</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span> = <span class="var-default">array()</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#addValuesForProduct" title="details" class="method-name">addValuesForProduct</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$productId</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$templateValues</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getAttributesByProduct" title="details" class="method-name">getAttributesByProduct</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$product_id</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#updateValuesForProduct" title="details" class="method-name">updateValuesForProduct</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$productId</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$templateValues</span>)
									</div>
							</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$_referenceMap" id="$_referenceMap"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$_referenceMap</span>
			 = <span class="var-default">array (<br />								 'Product' =&gt; <br />										array ('columns' =&gt; 'product_id',<br />											   'refTableClass' =&gt; 'Models_Products',<br />								   			   'refColumns' =&gt; 'product_id', <br />											   'onDelete' =&gt; self::CASCADE<br />								   			   ),'TemplateAttr'=&gt;array('columns'=&gt;'template_attribute_id','refTableClass'=&gt;'Models_ProductTemplates_Attributes','refColumns'=&gt;'template_attribute_id','onDelete'=&gt;self::CASCADE),)</span>			(line <span class="line-number">22</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Array of many-to-one references with products  &amp; templates attributes.</p>
<p class="description"><p>Realtion between products and templates attributes is many-to-many</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">43</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor. Sets table name &amp; primary key</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Models_Products_AttributeValues</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span><span class="var-description">: - see Zend_Db_Table_Abstract for details</span>			</li>
				</ul>
		
		
	</div>
<a name="methodaddValuesForProduct" id="addValuesForProduct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">addValuesForProduct</span> (line <span class="line-number">56</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Inserts template attribute values for product</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addValuesForProduct
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$productId</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$templateValues</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$productId</span><span class="var-description">: - product ID</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$templateValues</span><span class="var-description">: - array with template attribute id as key and attribute value as value</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetAttributesByProduct" id="getAttributesByProduct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getAttributesByProduct</span> (line <span class="line-number">86</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns attibutes info, values, product template info by product ID</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAttributesByProduct
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$product_id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$product_id</span>			</li>
				</ul>
		
		
	</div>
<a name="methodupdateValuesForProduct" id="updateValuesForProduct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">updateValuesForProduct</span> (line <span class="line-number">70</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Updates template attribute values for product</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			updateValuesForProduct
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$productId</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$templateValues</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$productId</span><span class="var-description">: - product ID</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$templateValues</span><span class="var-description">: - array with template attribute id as key and attribute value as value</span>			</li>
				</ul>
		
		
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Mon, 01 Mar 2010 23:32:28 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>